Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🌱WIL
🚀주간 목표 문제 수: 4개
백준 #1158. 요세푸스: 큐 / 실버4
정리한 링크: (바로가기)
🚩플로우 (선택)
2.출력
🚩제출한 코드
백준 #280633. 타노스는 요세푸스가 밉다.: 큐 / 실버2
정리한 링크: (바로가기)
🚩플로우 (선택)
first에 저장하고 , popleft() 로 첫번째를 포함한 K 마리 청설모를elements에서 제거한다.append()로 맨 뒤에 추가하여, 다음 첫번째 요소는 자동으로elements의idx =0로 배치된다.🚩제출한 코드